package com.tcxhb.job.common.constants.enums;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/7
 */
public enum ScheduleStatus {
    INIT(0, "初始化"),
    //调度成功是指已经提交到机器
    SUCC(3, "调度成功"),
    FAIL(5, "调度失败"),
    ;

    public Integer getType() {
        return type;
    }

    public String getName() {
        return name;
    }


    private Integer type;
    private String name;

    public boolean eq(Integer type) {
        return this.type.equals(type);
    }

    ScheduleStatus(Integer type, String name) {
        this.type = type;
        this.name = name;
    }
}
